package com.muyu.danmo.service;

import com.muyu.common.core.domain.Result;
import com.muyu.danmo.domain.DanmoTrainingLikes;

import java.util.List;

/**
 * 培训班点赞Service接口
 *
 * @author yangle
 * @date 2024-10-12
 */
public interface IDanmoTrainingLikesService
{
    /**
     * 查询培训班点赞
     *
     * @param id 培训班点赞主键
     * @return 培训班点赞
     */
    public DanmoTrainingLikes selectDanmoTrainingLikesById(Long id);

    /**
     * 查询培训班点赞列表
     *
     * @param danmoTrainingLikes 培训班点赞
     * @return 培训班点赞集合
     */
    public List<DanmoTrainingLikes> selectDanmoTrainingLikesList(DanmoTrainingLikes danmoTrainingLikes);

    /**
     * 新增培训班点赞
     *
     * @param danmoTrainingLikes 培训班点赞
     * @return 结果
     */
    public int insertDanmoTrainingLikes(DanmoTrainingLikes danmoTrainingLikes);

    /**
     * 修改培训班点赞
     *
     * @param danmoTrainingLikes 培训班点赞
     * @return 结果
     */
    public int updateDanmoTrainingLikes(DanmoTrainingLikes danmoTrainingLikes);

    /**
     * 批量删除培训班点赞
     *
     * @param ids 需要删除的培训班点赞主键集合
     * @return 结果
     */
    public int deleteDanmoTrainingLikesByIds(Long[] ids);

    /**
     * 删除培训班点赞信息
     *
     * @param id 培训班点赞主键
     * @return 结果
     */
    public int deleteDanmoTrainingLikesById(Long id);

    Result likeTrainingClass(Long userId, Long trainingInformationId);

    Long getLikesCount(Long trainingInformationId);
}
